package top.v5it.japi.plus.core.spring.web;

import org.springframework.web.servlet.DispatcherServlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 自定义重写{@link DispatcherServlet}
 *
 * @author zhanpu
 */
public class JapiDispatcherServlet extends DispatcherServlet {

    private static final long serialVersionUID = -4457707624132162310L;

    @Override
    protected void doDispatch(HttpServletRequest request, HttpServletResponse response) throws Exception {
        super.doDispatch(new JapiDecryptHttpServletRequestWrapper(request), response);
    }
}
